package com.day13.ex06;

public class Teacher {
    public void checkScore(int score)throws ScoreException{
        if(score<0||score>100){
            throw new ScoreException("分数不合法");
        }else{
            System.out.println("分数合法");
        }
    }
}
